<template>
  <div id="tab-bar">
      <tabItem path="home">
          <img slot="item-icon" src="../../assets/img/tabBar/home.png" alt="">
          <img slot="item-icon-active" src="../../assets/img/tabBar/homes.png" alt="">
          <div slot="item-text">首页</div>
      </tabItem>
      <tabItem path="cate">
          <img slot="item-icon" src="../../assets/img/tabBar/cate.png" alt="">
          <img slot="item-icon-active" src="../../assets/img/tabBar/cates.png" alt="">
          <div slot="item-text">分类</div>
      </tabItem>
      <tabItem path="cart">
          <img slot="item-icon" src="../../assets/img/tabBar/cart.png" alt="">
          <img slot="item-icon-active" src="../../assets/img/tabBar/carts.png" alt="">
          <div slot="item-text">购物车</div>
      </tabItem>
      <tabItem path="user">
          <img slot="item-icon" src="../../assets/img/tabBar/user.png" alt="">
          <img slot="item-icon-active" src="../../assets/img/tabBar/users.png" alt="">
          <div slot="item-text">我的</div>
      </tabItem>
    </div>
</template>

<script>
import tabItem from './tabItem.vue'
export default {
    data(){
        return{

        }
    },
    components:{
        tabItem
    }
}
</script>

<style>
#tab-bar{
  background-color: #f6f6f6;
  height: 49px;
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 -3px 1px rgba(100, 100, 100, 0.08);
}
.tab-bar-item{
  text-align: center;
  font-size: 14px;
}
.tab-bar-item img{
    height: 20px;
}
</style>